package com.lagou.pojo;

import com.lagou.interceptor.HandlerInterceptor;
import lombok.Data;

import java.lang.reflect.Method;
import java.util.*;
import java.util.regex.Pattern;

/**
 * desc:
 *
 * @author tengfei wang
 * @version 1.0
 * @date Created in 13/9/2020
 */
@Data
public class Handler {

    private Method method;

    private Object controller;

    private Pattern urlPath;

    private Map<String, Integer> parameters;

    public Handler(Method method, Object controller, Pattern urlPath) {
        this.method = method;
        this.controller = controller;
        this.urlPath = urlPath;
        this.parameters = new LinkedHashMap<>();
    }
}
